<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>类别首页</title>
</head>
<body>
<button><a href="/manage/">返回首页</a></button>
<form action="/manage/category/" method="post">
    类别名称：<input type="text" name="category_name" value="{{ category_name }}" />
    <input type="submit" value="查询" />
</form>
<button><a href="/manage/category/add/">添加类别</a></button>
<table border="1">
    <thead>
    <tr>
        <th><input type="checkbox" name="all" id="all"></th>
        <th>编号</th>
        <th>类别名称</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for category in article_category %}
        <tr>
            <td>
                <input type="checkbox" name="ids" value="{{ article.id }}" />
            </td>
            <td>{{ category.id }}</td>
            <td>{{ category.category_name }}</td>
            <td>
                <a href="/manage/category/update/{{ category.id }}">修改</a> <br>
                <a href="/manage/category/del/{{ category.id }}">删除</a>
            </td>
        </tr>
    {% empty %}
        <td>暂无数据</td>
    {% endfor %}
    </tbody>
</table>
</body>
</html>